Skip to content

Conversation

awesomenkj
Copy link

used Array.sort to avoid overflow issue and create a long array with many empty elements

Peter Rabbit and others added 3 commits March 12, 2020 19:45
used Array.sort to avoid overflow issue and create a long array with many empty elements
used math to avoid overflow issue
e.g;  let temp = [9, 2, 3, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7,  8, 9, 10];  in this case, `17 * Number(A.reverse().toString().replace(/,/g, ''));` returns NaN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant